package comMaket;

public class Market {
     private Product[] productlist;
     private String marketName;
     public String getMarketName(){
    	 return marketName;
     }
     public void setMarketName(String marketName){
    	 this.marketName = marketName;
     }
     public Product[] getProductlist(){
    	 return productlist;
     }
     public void setProductlist(Product[] string){
    	 this.productlist = string;
     }
     public Product sell(String producName){
       for(int i=0;i<productlist.length;i++){
    	 if(productlist[i].getProductName() .equals(productlist)){
    		 return productlist[i];
    	 }
     }
     return null; 
     }
	public void setProductlist(String string) {
		// TODO Auto-generated method stub
		
	}
}
